import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '@/components/Index'
import element_test from '@/components/element_test'
import login from '@/components/login'
import register from '@/components/register'
import is_active from '@/components/is_active'
import product from '@/components/product'
import cate from '@/components/cate'
import cart from '@/components/cart'
import order from '@/components/order'
import order_info from '@/components/order_info'
import tinymce from '@/components/tinymce'
import page from '@/components/page'
Vue.use(Router)


var routes = [
  {
    path: '/',
    name: 'Index',
    component: Index
  },
  {
    path: '/element_test',
    name: 'element_test',
    component: element_test
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/register',
    name: 'register',
    component: register
  },
  {
    path: '/is_active',
    name: 'is_active',
    component: is_active
  },
  {
    path: '/cate',
    name: 'cate',
    component: cate
  },
  {
    path: '/cart',
    name: 'cart',
    component: cart
  },
  {
    path: '/product',
    name: 'product',
    component: product
  },
  {
    path: '/order',
    name: 'order',
    component: order
  },
  {
    path: '/order_info',
    name: 'order_info',
    component: order_info
  },
  {
    path: '/tinymce',
    name: 'tinymce',
    component: tinymce
  },
  {
    path: '/page',
    name: 'page',
    component: page
  }

]


export default new Router({
  routes: routes,
  mode:'history' /*hash*/
})
